package com.yatube.yygh.hospital.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yatube.yygh.hospital.mapper.HospitalSetMapper;
import com.yatube.yygh.hospital.service.HospitalSetService;
import com.yatube.yygh.model.hosp.HospitalSet;
import org.springframework.stereotype.Service;



/**
 * @author Created with IDEA
 * @description -- 注意：这里会报错，将接口HospitalSetService 泛型改成HospitalSet
 * @date 2024-04-22 15:33
 */
@Service
public class HospitalSetServiceImpl extends ServiceImpl<HospitalSetMapper, HospitalSet> implements HospitalSetService {



    @Override
    public String getSignKeyByHoscode(String hoscode) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("hoscode", hoscode);
        return baseMapper.selectOne(wrapper).getSignKey();
    }
}
